package a.f.g.a;

import a.c.d;
import a.c.u;
import a.c.w;
import a.f.p;

public class tb
  implements u
{
  private e a;
  private p b;
  public static boolean c;
  
  public tb(e parame, p paramp)
  {
    if (parame == null) {
      throw new NullPointerException("layouter must not be null");
    }
    if (paramp == null) {
      throw new NullPointerException("graph must not be null");
    }
    this.a = parame;
    this.b = paramp;
  }
  
  public void a(a.c.cb paramcb)
  {
    boolean bool = xb.r;
    if ((bool) || (paramcb.a() != 0))
    {
      if (bool) {
        break label44;
      }
      if (paramcb.a() != 6) {}
    }
    else
    {
      b((a.c.e)paramcb.b());
    }
    label44:
    if ((bool) || (paramcb.a() != 1))
    {
      if (bool) {
        break label80;
      }
      if (paramcb.a() != 7) {}
    }
    else
    {
      b((d)paramcb.b());
    }
    label80:
    if (!bool) {
      if (paramcb.a() == 3) {
        a((a.c.e)paramcb.b());
      }
    }
    if (paramcb.a() == 5) {
      a((d)paramcb.b());
    }
  }
  
  protected void a(d paramd)
  {
    this.a.a(new Runnable()
    {
      private final d val$edge;
      
      public void run()
      {
        d locald = tb.this.b.n(this.val$edge);
        if (locald == null) {
          return;
        }
        if (!xb.r) {
          if (!tb.this.b.j(locald)) {
            return;
          }
        }
        tb.this.a(locald, this.val$edge);
      }
    });
  }
  
  protected void a(d paramd1, d paramd2)
  {
    this.b.a(paramd1);
    c(paramd2.e());
    c(paramd2.f());
  }
  
  protected void a(a.c.e parame)
  {
    this.a.a(new Runnable()
    {
      private final a.c.e val$originalNode;
      
      public void run()
      {
        a.c.e locale = tb.this.b.m(this.val$originalNode);
        if (!xb.r)
        {
          if (locale == null) {
            return;
          }
          tb.this.a(locale, this.val$originalNode);
        }
      }
    });
  }
  
  protected void a(a.c.e parame1, a.c.e parame2)
  {
    this.b.a(parame1);
    c(parame2);
  }
  
  protected void b(d paramd)
  {
    this.a.a(new Runnable()
    {
      private final d val$originalEdge;
      
      public void run()
      {
        tb.this.b.k(this.val$originalEdge);
      }
    });
  }
  
  protected void b(a.c.e parame)
  {
    this.a.a(new Runnable()
    {
      private final a.c.e val$originalNode;
      
      public void run()
      {
        tb.this.b.l(this.val$originalNode);
      }
    });
  }
  
  protected void c(a.c.e parame)
  {
    boolean bool = xb.r;
    int i = xb.q;
    w localw = parame.o();
    do
    {
      if (!localw.e()) {
        break;
      }
      a.c.e locale = localw.d();
      double d = 0.0D;
      cb localcb = this.a.a(locale);
      if (!bool)
      {
        if (localcb != null) {
          d = localcb.g();
        }
        this.a.bb().a(locale, Math.min(1.0D, d + 0.5D));
        localw.f();
      }
    } while (i == 0);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.tb
 * JD-Core Version:    0.7.0.1
 */